Skip to content

Conversation

@srrangarajan
Copy link
Contributor

Problem
The getAsync() CompletableFuture API was incorrectly reporting 100% cache hit rate because it called handleData() for all successful completions, even when the returned data was null (cache miss).

Solution
Added a null check to properly distinguish between cache hits (data != null) and cache misses (data == null), ensuring accurate hit rate metrics that match the behavior of synchronous get operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants